//
//  Api.swift
//  ZNZXSuperMarket
//
//  Created by 四川中农 on 2018/8/9.
//  Copyright © 2018年 四川中农. All rights reserved.
//

import Foundation


enum Api:String {
    
    case placeHolder = "img_placeholder_1" // 占位图
    case header = "header_placeholder"
    
    case root = "https://chaoshi.znzxkeji.com/api"
    
    case login = "/user/login" // 登录
    case register = "/user/register" // 注册
    case reset_password = "/user/reset_password" // 重置密码
    case userUpdatePassword = "/user/update_password" // 修改密码
    
    
    case index = "/index" // 首页
    case indexBinding = "/index/binding" //捆绑商品  首页和列表页通用
    case indexRandom = "/index/random" // 首页底部商品
    case indexManufactors = "/index/manufactors" //首页厂家直销
    case indexNnew = "/index/new" // 新品推荐 首页和列表页通用
    case provinceList = "/province/list" // 获取省市区
    case get_code = "/get_code" // 获取验证码
    case manufactorGoods = "/manufactor/goods" // 查看厂家
    
    
    case hot_search = "/hot_search" // 热搜
    case keyword = "/keyword" // 获取搜索关键字
    case search = "/search" //搜索
    
    case cartInsert = "/cart/insert" // 加入购物车
    case goodsDetail = "/goods/detail" // 商品详情
    case userCollectionAdd = "/user/collection_add" // 加入或取消常用清单
    
    
    case goodsTypeList = "/goods_type/list" // 分类列表  包含一级和二级
    case goodsTypeGoods = "/goods_type/goods" // 获取分类下的商品
    case userCollection = "/user/collection" // 常用清单
    
    case cartList = "/cart/list" //购物车列表
    case CartDelete = "/cart/delete" // 删除购物车商品
    case orderCreate = "/order/create" // 提交订单
    
    case userMoney = "/user/money" // 获取我的余额
    
    
    case couponList = "/coupon/list" // 优惠卷列表
    case orderServiceTime = "/order/service_time" //订单送达时间
    
    case userPerson = "/user/person" // 个人中心
    case payBalance = "/pay/balance" //余额支付
    
    case orderMy = "/order/my" //我的订单
    case orderUpdate = "/order/update" //确认收货 或 取消订单
    
    case userArrears = "/user/arrears" //欠款详情
    case userSettleArrears = "/user/settle_arrears" // 归还欠款
    
    case orderStatis = "/order/statis" //统计
    case orderStatisDetail = "/order/statis/detail" //统计详情
    
    
    case userDemand = "/user/demand" // 新品需求
    case userUpdate = "/user/update" // 修改个人资料
    case payGet = "/pay/get" //  支付订单
    case payRecharge = "/pay/recharge" //余额充值
    case banner = "/banner" //获取 特惠礼包 厂家直销 新品推荐 顶部图片
    
    case articleList = "/article/list" // 文章列表
    case articleMy = "/article/my" // 我的文章
    case userSheetAdd = "/user/sheet_add" // 上传手写单
    case articleAgreement = "/article/agreement" // 用户注册协议
    case articleComment = "/article/comment" // 文章评论
    case articleCollection = "/article/collection" // 文章收藏/取消
 }



















